<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
[#include "/admin/include/head.htm"]
    <script type="text/javascript">
        var grid;
        function f_export_loan(){
            $("#exportForm").submit();
        }
        $(function(){
            grid = $("#maingrid").ligerGrid({
                columns: [
                    {hide: true, name: 'path'},
                    {display: '用户id', name: 'user_id', align: 'center', width: 200 },
                    {display: '用户名', name: 'userName', align: 'center', width: 100 },
                    {display: '记录id', name: 'id', align: 'center', width: 120 },
                    {display: '记录类型', name: 'type', align: 'center', width: 100,dict:'account_type'  },
                    {display: 'total', name: 'total', align: 'center', width: 0,frozen:true },
                    {display: '账户总额', name: 'interest', align: 'center', width: 100,
                        render: function(row){
                            var data = parseFloat(row.total) +parseFloat(row.collection)+"";

                            if(data==0){
                                return "0.000";
                            }else{
                                return data;
                            }


                        }
                    },
                    {display: '操作金额', name: 'money', align: 'center', width: 100 },
                    {display: '可用余额', name: 'balance', align: 'center', width: 100 },
                    {display: '冻结金额', name: 'freezing_amont', align: 'center', width: 100 },
                    {display: '待收金额', name: 'collection', align: 'center', width: 100 },
                    {display: '记录时间', name: 'addtime', align: 'center', width: 100 ,isdate:"true"},
                    {display: '备注', name: 'remark', align: 'center', width: 100 }
                ],  pageSize:20, url: 'queryData.aspx',toolbar: {}, width: '100%', height:'100%', enabledSort: true
            });

            $(".l-toolbar").ligerToolBar({ items: [

                { text: '导出', click: f_export_loan }
            ]
            });
            //绑定搜索按钮
            LG.search(grid);
        });

    </script>
</head>
<body style="padding:10px; overflow:hidden;">
<div id="functions">
    <div class="clearfix">
        <div style="float:left;">
            <form id="exportForm" method="post" action="${path}/admin/account_log/exportlist.aspx">
                 <span>
					用户ID：<input type="text" name="userId"  />
			</span>
            <span>
					用户名：<input type="text" name="userName"  />
			</span>
            <span>
					资金记录类型：[@u.select listKey="dict_value"  headerKey="" headerValue="全部类型" listValue="dict_lab" headerButtom="false" list=DictionaryUtils.getDictListNid('account_type')
            name="account_type" value="${(account_type)!''}" /]
			</span>

                日期：<input type="text" id="begin_date" name="begin_date"
                            class="formText WdatePicker {dateFmt:'yyyy-MM-dd'}" />
                -
                <input type="text" id="endDate" name="end_date"
                       class="formText WdatePicker {dateFmt:'yyyy-MM-dd'}" />
                <input type="button" class="button" value="搜索" id="search"/>
                <a href="#" id="search_btn_reset" face="Wingdings 3">清除本次搜索</a>

            </form>
        </div>
    </div>
</div>

<div id="maingrid" style="margin:0; padding:0"></div>
</body>
</html>